#ifndef STATISTICSWINDOW_H
#define STATISTICSWINDOW_H

#include <QWidget>
#include <QSqlDatabase>

class StatisticsWindow : public QWidget
{
    Q_OBJECT
public:
    explicit StatisticsWindow(QWidget *parent = nullptr);
    void paintEvent(QPaintEvent *event) override;

private:
    struct SalesData {
        QString productName;
        double salesAmount;
    };
    QVector<SalesData> loadSalesData();
};

#endif // STATISTICSWINDOW_H
